﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="view_list_room_detail.aspx.cs" Inherits="view_list_room_detail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div align="center">
    <br /><br /><br /><img src="Image/list-room-detail.png" alt=""/>
    <br /><br />
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" 
        DataKeyNames="ROOM_TYPE_ID" DataSourceID="orclDataSource3" Width="900px"
        ForeColor="#FFCC66" BorderColor="#4A1106" PageSize="20" >
        <Columns>
            <asp:BoundField DataField="ROOM_TYPE_ID" HeaderText="ROOM_TYPE_ID" 
                ReadOnly="True" SortExpression="ROOM_TYPE_ID" />
            <asp:BoundField DataField="ROOM_TYPE_NAME" HeaderText="ROOM_TYPE_NAME" 
                SortExpression="ROOM_TYPE_NAME" />
            <asp:BoundField DataField="PRICE" HeaderText="PRICE" SortExpression="PRICE" />
            <asp:BoundField DataField="DESCRIPTION_EN" HeaderText="DESCRIPTION_EN" 
                SortExpression="DESCRIPTION_EN" />
            <asp:BoundField DataField="DESCRIPTION_TH" HeaderText="DESCRIPTION_TH" 
                SortExpression="DESCRIPTION_TH" />
        </Columns>
        <HeaderStyle BackColor="#993300" />
        <PagerStyle HorizontalAlign="Center" />
        <RowStyle HorizontalAlign="Center" />
    </asp:GridView>
    
    <asp:SqlDataSource ID="orclDataSource3" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString3 %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString3.ProviderName %>" 
        SelectCommand="SELECT ROOM_TYPE_ID, ROOM_TYPE_NAME, PRICE, DESCRIPTION_EN, DESCRIPTION_TH FROM ROOM_DETAIL">
    </asp:SqlDataSource>
<br /><br />
    <asp:Button ID="Button1" runat="server" Text="<< Back" BackColor="#FFCC66" 
            Height="25px" onclick="Button1_Click" Width="85px" BorderColor="#FF9966" />

</div><br /><br />
</asp:Content>

